package org.mypofolio.model.update;

import org.mypofolio.model.CurrencyTableModel;
import org.mypofolio.model.DataModel;

public class UpdateStockThread implements Runnable {
	
	private int row;
	private int col;
	private String stockId;
	private CurrencyTableModel cm;
	
	public UpdateStockThread(int row,int col,String stockId,CurrencyTableModel cm){
		this.row=row;
		this.col=col;
		this.stockId=stockId;
		this.cm=cm;
	}

	@Override
	public void run() {
		cm.setValueAt("** Loading... **",row,col);
		try {
			Thread.sleep(5000);
			cm.setValueAt("aaaaaa",row,col);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	}
	
	public void execute(){
		new Thread(this).start();
	}
	
	

}
